package etp.client.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import etp.client.Recurso;

@RemoteServiceRelativePath("rpc/recursos")
public interface ResourceAdminService extends RemoteService {

	public List<Recurso> list();
	
	public Recurso cadastrar(Recurso r) throws Exception;
	
	public String remover(String cod);
	
	public String modificar(String cod, Recurso r);
	
	public Recurso getCurrentUser() throws Exception;
	
	public Recurso getRecurso(String email) throws Exception;

}
